package com.base.cn.platform.os.service.upload;

import com.base.cn.platform.os.service.FeignAuthConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * 日志生成接口
 *
 * @author s.li
 * @date 2019/05/05
 */
@FeignClient(name = "res",configuration = FeignAuthConfig.class)
public interface LoggerGenService {

    /**
     * 生成专业学习日志
     * @param subjectIds 专业ID串
     */
    @RequestMapping("/logger/genSubjectStudUvLog")
    void genSubjectStudUvLog(@RequestParam("subjectIds") String subjectIds);

    /**
     * 生成商品PV/UV日志
     * @param goodsId
     * @param goodsType
     */
    @RequestMapping("/logger/genGoodsPVUVLog")
    void genGoodsPVUVLog(@RequestParam("goodsId") BigDecimal goodsId,
                         @RequestParam("goodsType") String goodsType);
}
